<%@page import="cn.school.service.Service2"%>
<%@page import="cn.school.entity.Grade"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="student3.jsp" method="get">
<p>
	<label>学号</label>
	<input type="number" name="stuno" value="" />
</p>
<p>
	<label>姓名</label>
	<input type="text" name="sname" value="" />
</p>
<p>
	<label>性别</label>
	<input type="text" name="sex" value="" />
</p>
<p>
	<label>电话</label>
	<input type="number" name="telephone" value="" />
</p>
<p>
	<label>qq</label>
	<input type="number" name="qq" value="" />
</p>
<p>
	<label>微信</label>
	<input type="text" name="wechat" value="" />
</p>
<p>
	<label>年级编号</label>
	<!-- <input type="number" name="gradeid" value="" /> -->
	<%
			Service2 s=new Service2();
			List<Grade> list=s.findALL();
			
			%>
			<select name="gradeid">
				<%
				 for(Grade g:list){
				%>
				<option value="<%=g.getId()%>"><%=g.getGname() %></option>
				<%} %>
			</select>
</p>
<p>
	<label>入学日期</label>
	<input type="text" name="enterdate" value="" />
</p>
<p>
	<label>来自哪里</label>
	<input type="text" name="fromcity" value="" />
</p>
<p>
	<label>出生日期</label>
	<input type="text" name="birthday" value="" />
</p>
<p>
	<label>地址</label>
	<input type="text" name="address" value="" />
</p>
<p>
	<label>密码</label>
	<input type="number" name="pass" value="" />
</p>
<p>
	<input type="submit" value="添加">
</p>
</form>
</body>
</html>